package com.nl.bean.output;

import java.io.Serializable;

/**
 * @author shihb
 * @date 2019/12/24 16:21
 * 告警的样例类
 */
public class Warning implements Serializable {
  private Long userId;
  private String firstFailTime;
  private String lastFailTime;
  private String warningMsg;

  public Warning() {
  }

  public Warning(Long userId, String firstFailTime, String lastFailTime, String warningMsg) {
    this.userId = userId;
    this.firstFailTime = firstFailTime;
    this.lastFailTime = lastFailTime;
    this.warningMsg = warningMsg;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public String getFirstFailTime() {
    return firstFailTime;
  }

  public void setFirstFailTime(String firstFailTime) {
    this.firstFailTime = firstFailTime;
  }

  public String getLastFailTime() {
    return lastFailTime;
  }

  public void setLastFailTime(String lastFailTime) {
    this.lastFailTime = lastFailTime;
  }

  public String getWarningMsg() {
    return warningMsg;
  }

  public void setWarningMsg(String warningMsg) {
    this.warningMsg = warningMsg;
  }

  @Override
  public String toString() {
    return "Warning{" +
        "userId=" + userId +
        ", firstFailTime='" + firstFailTime + '\'' +
        ", lastFailTime='" + lastFailTime + '\'' +
        ", warningMsg='" + warningMsg + '\'' +
        '}';
  }
}
